package cn.iocoder.yudao.module.member.assets.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/03/04
 */
@Data
public class AppCryptocurrencyIncreasingTaskSubmitVO implements Serializable {

    @Schema(description = "联盟豆增值任务编号。从联盟豆增值任务领取接口获取。")
    private Long taskId;

    public Long getTaskId() {
        if (taskId != null && taskId > 0) {
            return taskId;
        }
        return getIncreasingId();
    }

    @Schema(description = "联盟豆增值任务编号。使用 `taskId` 代替。", deprecated = true)
    @Deprecated
    private Long increasingId; // 历史遗留问题兼容处理

    @Schema(description = "广告投放计划编号。从联盟豆增值任务领取接口获取。", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long advertisingId;

    @Schema(description = "看广告时长，单位为秒。从广告视频开始播放时计时。")
    private Integer duration;

}
